﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Success.aspx.cs" Inherits="XHCTMS.VIEW.Success" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css?v=2">
    <!-- fluid 960 -->
    <link rel="stylesheet" type="text/css" href="css/text.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/layout.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
    <!-- superfish menu -->
    <link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
    <!-- tags css -->
    <link rel="stylesheet" href="css/jquery.tagsinput.css">
    <!-- treeview css -->
    <link rel="stylesheet" href="css/jquery.treeview.css">
    <!-- dataTable css -->
    <link rel="stylesheet" href="css/demo_table_jui.css">
    <!-- fluid GS -->
    <link rel="stylesheet" type="text/css" href="css/fluid.gs.css" media="screen" />
    <!--[if lt IE 8 ]>
<link rel="stylesheet" type="text/css" href="css/fluid.gs.lt_ie8.css" media="screen" />
<![endif]-->
    <!-- //jqueryUI css -->
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
    <!-- //jquery -->
    <!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> -->
    <script src="js/libs/jquery-1.5.1.min.js"></script>
    <script>        !window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
    <!-- //jqueryUI -->
    <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
    <script type="text/javascript" src="js/jquery-fluid16.js"></script>
    <script src="js/plugins.js"></script>
    <script src="js/script.js"></script>
    <!-- //xoxco tags plugin https://github.com/xoxco/jQuery-Tags-Input -->
    <script src="js/jquery.tagsinput.min.js"></script>
    <link rel="stylesheet" href="css/jquery.tagsinput.css">
    <!--[if lt IE 7 ]>
<script src="js/libs/dd_belatedpng.js"></script>
<script> DD_belatedPNG.fix('img, .png_bg');</script>
<![endif]-->
    <!-- modernizr -->
    <script src="js/libs/modernizr-1.7.min.js"></script>
    <!-- superfish menu and needed js for menu -->
    <script src="js/superfish.js"></script>
    <script src="js/supersubs.js"></script>
    <script src="js/hoverIntent.js"></script>
    <script src="js/libs/modernizr-1.7.min.js"></script>
    <style type="text/css">
        .txt
        {
            margin-left: 10px;
            width: 150px;
            margin-right: 20px;
            margin-top: 5px;
        }
        .dropdownlist
        {
            margin-left: 10px;
            width: 155px;
            height: 23px;
            margin-right: 20px;
            margin-top: 5px;
        }
        .dialog_link
        {
            padding: 0.4em 1em 0.4em 20px;
            position: relative;
            text-decoration: none;
        }
        .span-ui-icon
        {
            left: 0.2em;
            margin: -8px 5px 0 0;
            position: absolute;
            top: 50%;
        }
    </style>
    <script type="text/javascript"  language=javascript>
        $(function () {
            $("#aSubmit").click(function () {
                $("#btnSubmit").trigger("click");
            }
        )

        });
        function selectchild(t) {
            $(t).children().eq(0).css("display", "none");
            $(t).children().eq(1).css("display", "inline");
            //  $("#txtTempSubID").val($(t).parent().parent().find("td :eq(0)").html());
            $(t).children().eq(1).focus();
        };
        function displayNone(t) {
            var score = parseFloat($(t).val());
        
            if (score < 0 || score > 100 || isNaN(score) ) {
                $(t).val("");
            }
            else {     
                $(t).parent().children().eq(0).html(score);
            }
            $(t).css("display", "none");
            $(t).parent().children().eq(0).css("display", "inline");
        };
        function enteronblur(t) {
            $(t).blur();
        };
    </script>
</head>
<body>
    <form id="Form1" runat="server">
   <div class="box" >
        <h2>
            <a href="#" id="toggle-forms">课程信息</a>
        </h2>
        <div class="block" id="forms">
            <fieldset>
                <legend>信息</legend>
                <div style="width:710px">
                    <label id="lblStuName">
                      &nbsp;&nbsp  班级名</label>&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtClassName"  ReadOnly="true" runat="server"  class="txt"></asp:TextBox>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <label id="Label1">
                        班主任</label>&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtClassTea"  ReadOnly="true" runat="server"  class="txt"></asp:TextBox>
                     <br />
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label>课程</label>&nbsp;&nbsp;&nbsp;
                     <asp:TextBox ID="txtTeaLesson"  ReadOnly="true" runat="server"  class="txt"></asp:TextBox>
                    &nbsp; <label>授课教师</label>&nbsp;&nbsp;&nbsp;
                     <asp:TextBox ID="txtTeaTea"  ReadOnly="true" runat="server"  class="txt"></asp:TextBox>
<br />
                     <label id="Label2">  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;                                       
                     专业</label>&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtClassSub"  ReadOnly="true" runat="server"  class="txt"></asp:TextBox>
                          
                      
                      
                   
                    
                </div>
            </fieldset>
        </div>
    </div>
        <div  class="box">
        <h2>
            <a href="#" id="toggle-list">学生打分</a>
        </h2>
        <div class="block" id="list">
            <asp:Repeater ID="InfoList" runat="server">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" class="display" "
                        id="example">
                        <thead>
                            <tr>
                            
                                <th>
                                    班级
                                </th>
                                <th>
                                    学生姓名
                                </th>
                                <th>
                                    课程
                                </th>
                                 <th>考勤分</th>
                                <th>
                                    平时表现分
                                </th>
                                <th style="text-align:right">
                                    考试分 &nbsp;&nbsp;
                                </th>                           
                                <th style="text-align:right">结课时间
                                </th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <tbody>
                        <tr class="odd gradeA">
                            <td >
                                <asp:Label ID="lblReClassName" runat="server" Text='<%#Eval("class_name")%>' ></asp:Label>
                             
                            </td>
                            <td  style="display:none">
                            <asp:Label ID="lblReStuID" runat="server" Text='<%#Eval("student_id")%>'></asp:Label>
                            </td>
                            <td>
                               <label> <%#Eval("student_name")%></label>
                            </td>
                            <td>
                                 <label> <%#Eval("teaching_lesson")%></label>
                            </td>
                             <th>
                              <asp:Label ID="lblReCheckScore" runat="server" Text='<%#Eval("checkScore")%>'></asp:Label>
                             </th>
                            <td>
                               <asp:Label ID="lblRePerScore" runat="server" Text='<%#Eval("perScore")%>'></asp:Label>
                            </td>
                            <td onclick="selectchild(this)" style="text-align:right; width:15%"   >
  
                               <label></label>                          

                                <asp:TextBox ID="txtReSucScore" runat="server" onblur="displayNone(this)"  onkeydown="if(event.keyCode==13) enteronblur(this) " runat="server" style=" display:none; 
                                     width:100px; margin-top:-3px; margin-bottom :-4px;  text-align:right;"   ></asp:TextBox>

                            </td>
                            <th style="text-align:right">
                            <label> <%#Eval("teaching_time")%></label>
                                </th>
                        </tr>
                    </tbody>
                </ItemTemplate>
                <FooterTemplate>
                    <tfoot>
                        <tr>

                            <th>
                                班级
                            </th>
                            
                            <th>
                                学生姓名
                            </th>
                            <th>
                                课程
                            </th>
                            <th>
                            考勤分
                            </th>
                            <th>
                                平时表现分
                            </th>
                            <th style="text-align:right">
                                考试分&nbsp;&nbsp;
                            </th>
                      <th style="text-align:right">结课时间
                                </th>
                        </tr>
                    </tfoot>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <a href="#" id="aSubmit" class=" dialog_link ui-state-default ui-corner-some floatRight">
                <span class=" span-ui-icon ui-icon ui-icon-arrowrefresh-1-e "></span>提交考勤</a>
        </div>
    </div>

    <asp:Button ID="btnSubmit" runat="server" Text="Button" style="display:none"
        onclick="btnSubmit_Click" />
    <div id="dialogRevise" style="display: none" title="授课任务">
        <span id="spnRevise" style="color: Red">确定修改？</span>
    </div>
    <div id="dialogError" style="display: none;" title="授课任务">
        <span id="spnError" style="color: Red" runat="server">请填写完整!(状态不需要选择)</span>
    </div>
    <%--<asp:Button ID="btnAdd" Style="display: none" runat="server" Text="Button" OnClick="btnAdd_Click" />
    <asp:Button ID="btnRevise" UseSubmitBehavior="false" Style="display: none" runat="server"
        Text="Button" OnClick="btnRevise_Click" />
    <asp:Button ID="btnSearch" Style="display: none" runat="server" Text="Button" OnClick="btnSearch_Click" />
    <asp:Button ID="btnPrevious" Style="display: none" runat="server" Text="Button" OnClick="btnPrevious_Click" />
    <asp:Button ID="btnNext" Style="display: none" runat="server" Text="Button" OnClick="btnNext_Click" />
    <asp:Button ID="btnFirst" Style="display: none" runat="server" Text="Button" OnClick="btnFirst_Click" />
    <asp:Button ID="btnLast" Style="display: none" runat="server" Text="Button" OnClick="btnLast_Click" />--%>
    </form>
</body>
</html>
